package com.cq.hd.order.api.vo;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author much
 * @since 2024/09/16 22:25
 */
@Data
public class AppGroupBuyOrderDetailVo implements Serializable {
    private static final long serialVersionUID = 9089838819505891631L;

    @ApiModelProperty(value = "拼团id（邀请别人进团需要带这个参数）")
    private Long groupBuyOrderId;

    @ApiModelProperty(value = "活动标题")
    private String activeTitle;

    @ApiModelProperty(value = "活动图片")
    private String activeImg;

    @ApiModelProperty(value = "拼团价格")
    private BigDecimal groupBuyPrice;

    @ApiModelProperty(value = "活动价格")
    private BigDecimal activePrice;

    @ApiModelProperty(value = "划线价格")
    private BigDecimal originPrice;

    @ApiModelProperty(value = "成团人数")
    private Integer groupNum;

    @ApiModelProperty(value = "已参团人数")
    private Integer currentNum;

    @ApiModelProperty(value = "活动开始时间")
    @JSONField(format="yyyy.MM.dd HH:mm:ss")
    private LocalDateTime activeStartTime;

    @ApiModelProperty(value = "活动结束时间")
    @JSONField(format="yyyy.MM.dd HH:mm:ss")
    private LocalDateTime activeEndTime;

    @ApiModelProperty(value = "拼团到期时间")
    @JSONField(format="yyyy.MM.dd HH:mm:ss")
    private LocalDateTime expiredTime;

    @ApiModelProperty(value = "是否团长：true是 false否")
    private Boolean groupLeadState;

    @ApiModelProperty(value = "是否可邀请拼团：true是 false否")
    private Boolean inviteEnable;

    @ApiModelProperty(value = "免单类型 (0-无，1: 团长免单, 2: 随机免单)")
    private Integer freeType;

    @ApiModelProperty(value = "参团成员列表")
    private List<GroupBuyMemberVo> members;

}
